<?php /* Smarty version 2.6.20, created on 2016-07-26 13:59:05
         compiled from ./suppliers/create.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'classes', './suppliers/create.php', 21, false),array('block', 'shops', './suppliers/create.php', 37, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/top.php", 'smarty_include_vars' => array('subject' => 'suppliers')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "suppliers/top.php", 'smarty_include_vars' => array('subject' => 'suppliers')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="content">
  <form method="post">
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">供应商名称:</td>
        <td width="240" class="content"><input name="title" type="text" id="title" value="<?php echo $_POST['title']; ?>
" size="30" /> 
          *</td>
        <td width="821" class="content">
        <?php if ($this->_tpl_vars['errors']['empty_title']): ?><span class="warning">供应商名称不能为空</span>
        <?php elseif ($this->_tpl_vars['errors']['exist_title']): ?><span class="warning">该供应商名称已存在</span>
        <?php else: ?>输出供应商名称
        <?php endif; ?>        </td>
      </tr>
      <tr>
        <td class="title">负责人:</td>
        <td class="content">
        	<select name="classid">
        		<option value="">指定负责人</option>
        		<?php $this->_tag_stack[] = array('classes', array()); $_block_repeat=true;smarty_block_classes($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
        			<option value="<?php echo $this->_tpl_vars['classes']['id']; ?>
"><?php echo $this->_tpl_vars['classes']['title']; ?>
</option>
        		<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_classes($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        	</select>*
        </td>
        <td class="content">
        <?php if ($this->_tpl_vars['errors']['empty_classtitle']): ?><span class="warning">负责人不能为空</span>
        <?php else: ?>选择负责人
        <?php endif; ?>
        </td>
      </tr>      
      
      <tr>
        <td class="title">仓库:</td>
        <td class="content">
        	<select name="shopid">
        		<?php $this->_tag_stack[] = array('shops', array()); $_block_repeat=true;smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
        			<option value="<?php echo $this->_tpl_vars['shops']['id']; ?>
" <?php if ($_GET['shopid'] == $this->_tpl_vars['shops']['id']): ?>selected<?php endif; ?> <?php if (1 == $this->_tpl_vars['shops']['disabled']): ?>disabled<?php endif; ?>><?php echo $this->_tpl_vars['shops']['title']; ?>
</option>
        		<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
        	</select>*
        </td>
        <td class="content">
        		选择仓库
        </td>
      </tr>  
      <tr>
      	<td class="title">是否通用:</td>
        <td class="content">
        	<input name="is_general" type="radio" id="is_general" value="0" <?php if ($_POST['is_general'] == 0): ?>checked<?php endif; ?>/>否
        	<input name="is_general" type="radio" id="is_general" value="1" <?php if ($_POST['is_general'] == 1): ?>checked<?php endif; ?>/>是
    	</td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr>
        <td class="title">联系人:</td>
        <td class="content"><input name="linkman" type="text" id="linkman" value="<?php echo $_POST['linkman']; ?>
" size="30" /></td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr>
        <td class="title">联系电话:</td>
        <td class="content"><input name="phone" type="text" id="phone" value="<?php echo $_POST['phone']; ?>
" size="30" /></td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr>
        <td class="title">联系地址:</td>
        <td class="content"><input name="address" type="text" id="address" value="<?php echo $_POST['address']; ?>
" size="30" /></td>
        <td class="content">&nbsp;</td>
      </tr>
      <tr class="noline">
        <td class="title">备注说明:</td>
        <td colspan="2" class="content"><textarea name="memo" cols="60" rows="5" id="memo"><?php echo $_POST['memo']; ?>
</textarea></td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <input type="submit" value="添加" class="btn" />
    <a href="#" class="btn" onclick="history.back();">取消</a> 
    <input name="action" type="hidden" id="action" value="create" />
    </div>
  </form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/bottom.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>